package com.jhc.drone.communication.network.tcp;


import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.Channel;

/**
 * @author lcp
 * @date 2025年01月2025/1/20 13:10
 * @describe
 */
public class TcpResponseSender {

    public static void sendResponse(byte[] data, Channel channel) {
        ByteBuf byteBuf = Unpooled.copiedBuffer(data);
        channel.writeAndFlush(byteBuf);
    }
}
